package com.zcl.javaClassAndObject.inheritance.合成和继承的结合;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/10  11:41
 */
public class PlaceSetting extends Custom{
    Spoon sp;
    Fork frk;
    Knife kn;
    DinnerPlate pl;
    PlaceSetting(int i) {
        super(i + 1);
        sp = new Spoon(i + 2);
        frk = new Fork(i + 3);
        kn = new Knife(i + 4);
        pl = new DinnerPlate(i + 5);
        System.out.println("PlaceSetting constructor"+i);
    }
    public static void main(String[] args) {
        PlaceSetting x = new PlaceSetting(9);
    }
}
/**
 * Custom constructor10
 * Utensil constructor11
 * Spoon constructor11
 * Utensil constructor12
 * Fork constructor12
 * Utensil constructor13
 * Knife constructor13
 * Plate constructor14
 * DinnerPlate constructor14
 * PlaceSetting constructor9
 * */